package com.personnel.controller;


import com.personnel.service.impl.DownloadExcelTemplateServiceImpl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author: YuePeng
 * @Date: 2022/2/16 16:14
 * @Version: 1.0
 */
@Controller
@RequestMapping("/downloadExcelTemplate")

public class DownloadExcelTemplateController {

    @Resource
    private DownloadExcelTemplateServiceImpl downloadExcelTemplateService;

    @GetMapping("/staff")
    public void downloadGovernmentExcelTemplate(HttpServletRequest request,HttpServletResponse response) throws IOException {
        downloadExcelTemplateService.downloadGovernmentExcelTemplate(request, response);
    }
}
